package com.ctgu.cn;
import java.time.ZoneId;
import java.time.ZonedDateTime;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
public class PhoneBillCaculator {
	private long duration; 
	public PhoneBillCaculator(HoldingTimeByZoned htb){
		this.duration=htb.getHoldingTime();
	}
	public double BillCaculator() {
		double fee=0.0;
		if(duration<=20&&duration>0) {
			fee=duration*0.05;	
		}
		else if(duration>20 && duration<=1800){
			fee=(duration-20)*0.1+1.0;
		}
		return fee;
	}
}
